package com.foreveross.proxyip.util;

/**
 * 跟proxyService.properties 配置一一对应的参数
 * @author lyq
 *
 */
public  class Config {
	
	
//	private static Properties properties=Globle.getInstance().getProperties();
	/********公共池验证代理ip链接的url********/
	public final static String PUBLIC_POOLS_VALIDATE_URLS 	= "public_pools_validate_urls";
	/********公共池存在的代理ip数********/
	public final static String POOL_PROXY_MAX				= "pool_proxy_max";
	/********最小连接代理IP数********/
	public final static String POOL_PROXY_MIN 		  	 	= "pool_proxy_min";
	/********公共池 http 读取页面数据超时时间 毫秒********/
	public final static String PUBLIC_SO_TIMEOUT			= "public_so_timeout";
	/********公共池 http 链接超时时间********/
	public final static String PUBLIC_CONNECT_TIMEOUT		= "public_connect_timeout";
	/********ip使用次数最大阀值********/
	public final static String MAX_USED_COUNT				= "max_used_count";
	/********公共池验证ip间隔时间********/
	public final static String PUBLIC_IN_SEPARATION_TIME	= "public_in_separation_time";
	
	/********公共池检出时间间隔********/
	public final static String PUBLIC_OUT_SEPARATION_TIME 	= "public_out_separation_time";
	
	/********公共池ip检测的验证需要的间隔时间********/
	public final static String PUBLIC_IP_VALI_SEPAR_TIME	= "public_ip_validate_separation_time";
	
	public final static String THREAD_MAX_IP_COUNT			= "thread_max_ip_count";
	/********公共池验证1：验证特定url；0：ping代理ip********/
	public final static String PUBLIC_VALIDATE_STATE		= "public_validate_state";
	/********公共池ip存在的有效时间********/
	public final static String PUBLIC_IP_AVAIL_TIME			= "public_ip_avail_time";
	/********公共池验证方式 0：不验证；1：url验证；3:ping验证********/
	public final static String PUBLIC_PROXY_VALI_TYPE		= "public_proxy_vali_type";
	
	
	
	/********渠道池最小ip数********/
	public final static String CHANNEL_PROXY_MIN			= "channel_proxy_min";
	/********渠道池最大ip数********/
	public final static String CHANNEL_PROXY_MAX			= "channel_proxy_max";
	/********渠道池检测线程最大ip数********/
	public final static String CHANNEL_THREAD_MAX_COUNT		= "channel_thread_max_count";
	/********渠道池检测间隔时间********/
	public final static String CHANNEL_IN_SEPARATION_TIME		= "channel_in_separation_time";
	/********公共池检出时间间隔********/
	public final static String CHANNEL_OUT_SEPARATION_TIME 	= "channel_out_separation_time";
	/********渠道池ip使用次数最大阀值********/
	public final static String CHANNEL_MAX_USED_COUNT		= "channel_max_used_count";
	
	/********渠道池 http 读取页面数据超时时间 毫秒 ********/
	public final static String CHANNEL_SO_TIMEOUT			= "channel_so_timeout";
	/********渠道池 http 链接超时时间********/
	public final static String CHANNEL_CONNECT_TIMEOUT		= "channel_connect_timeout";
	/********渠道池ip检测的验证需要的间隔时间********/
	public final static String CHANNEL_IP_VALI_SEPAR_TIME	= "channel_ip_validate_separation_time";
	/********渠道池ip存在的有效时间********/
	public final static String CHANNEL_IP_AVAIL_TIME		= "channel_ip_avail_time";
	/********渠道池ip检出的时间需要的间隔时间********/
	public final static String CHANNEL_IP_OUT_SEP_TIME		= "channel_ip_out_sep_time";
	
	
	
	/********db池每次换取ip的数量********/
	public final static String DB_EXTRACT_NUM =	"db_extract_num";
	/********db池每次检入的间隔时间********/
	public final static String DB_IN_SEPARATION_TIME =	"db_in_separation_time";
	/********db池ip存在的最大数量********/
	public final static String DB_PROXY_MAX =	"db_proxy_max";
	/********db池ip存在的最小数量********/
	public final static String DB_PROXY_MIN =	"db_proxy_min";
	/********db池验证ip的最数量********/
	public final static String DB_THREAD_MAX_IP_COUNT = "db_thread_max_ip_count";	
	/********db池每次检出的间隔时间********/
	public final static String DB_OUT_SEPARATION_TIME = "db_out_separation_time";
	/********获取页面超时的时间********/
	public final static String DB_SO_TIMEOUT = "db_so_timeout";			
	/********连接页面超时********/
	public final static String DB_CONNECT_TIMEOUT = "db_connect_timeout";
//	/********ip存在池中的有效时间********/
//	public final static String DB_IP_AVAIL_TIME = "db_ip_avail_time";
//	/********ip检测的间隔时间********/
//	public final static String DB_IP_VALIDATE_SEPARATION_TIME = "db_ip_validate_separation_time";
	/********检验线程超时时间********/
	public static final String DB_THREAD_TIMEOUT = "db_thread_timeout";
	/********db池ip使用次数最大阀值********/
	public static final String DB_MAX_USED_COUNT = "db_max_used_count";
	/********db池验证方式 0：不验证；1：url验证；3:ping验证********/
	public static final String DB_PROXY_VALI_TYPE = "db_proxy_vali_type";
	
	
	public static final String RECORD_HISTORY_LOG = "record_history_log";
	
//	
//	public static String  HTTP_ORDER_ID						= "HTTP_ORDER_ID";
////	
//	public final static String  HTTP_PROSY					= "getHttp_proxy";
////	
//	public final static String DALI666_HTTP_ORDER_ID		= "dali666_http_order_id";
//	
//	public final static String UNKNOWN1_ORDER_ID 			= "unknown1_order_id";
//	
//	public final static String DALI999_HTTP_ORDER_ID   		= "dali999_http_order_id";
	
//	public final static String EXTRACT_IP_SPLIT_TIME		= "extract_ip_split_time";
	/*********默认渠道池代码**********/
//	public final static String DEFAULT_POOL_CODE = "default_pool_code";
	
	/*********插入缓存最大的数目，超过该数才插入数据库**********/
	public final static String TASKQUEUELOG_CACHEENTITYCOUNT = "taskqueuelog_cacheEntitycount";
	
	/*********系统是否开启代理池线程**********/
	public final static String IS_SYSTEM_OPEN_POOL = "is_system_open_pool";
	
	/*********设置验证线程执行超时时间**********/
	public final static String THREAD_EXECUTE_TIMEOUT = "thread_execute_timeout";
	
	/*********设置抓取ip连接超时时间**********/
	public static final String EXTRACT_CONNECTION_TIMEOUT = "extract_connection_timeout";
	/*********设置抓取ip获取页面超时时间**********/
	public static final String EXTRACT_SO_TIMEOUT = "extract_so_timeout";
	
	
	//加密解密口令
	static String kouling = "foreveross2013";
	
	
	
	
	/**
	 * 修改 Properties文件之后调用该方法
	 */
	public static void reloadConfig(){
	}
}
